//
//  YSPopverViewController.m
//  YouSheng
//
//  Created by aaa on 16/8/19.
//  Copyright © 2016年 FanShuHan. All rights reserved.
//

#import "YSPopverViewController.h"

static NSString * const ID = @"cell";
@interface YSPopverViewController ()<UITableViewDataSource,UITableViewDelegate>
@property (weak, nonatomic) IBOutlet UITableView *presentTable;

@end

@implementation YSPopverViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.presentTable.rowHeight = 44;
    self.presentTable.delegate = self;
    self.presentTable.dataSource =self;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 4;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    if (indexPath.row == 0) {
        cell.textLabel.text = @"发起群聊";
    } else if (indexPath.row == 1) {
        cell.textLabel.text = @"添加联系人";
    } else if (indexPath.row == 2) {
        cell.textLabel.text = @"添加好友";
    } else if (indexPath.row == 3) {
        cell.textLabel.text = @"扫一扫";
    }
    return cell;
}
@end
